home *** CD-ROM | disk | FTP | other *** search
- /*
- File: FBALists.h
-
- Contains:
-
- Written by: Greg Sutton
-
- Copyright: Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
-
- You may incorporate this Apple sample source code into your program(s) without
- restriction. This Apple sample source code has been provided "AS IS" and the
- responsibility for its operation is yours. You are not permitted to redistribute
- this Apple sample source code as "Apple sample source code" after having made
- changes. If you're going to re-distribute the source, we require that you make
- it clear in the source that the code was descended from Apple sample source
- code, but that you've made changes.
-
- Change History (most recent first):
- 7/21/1999 Karl Groethe Updated for Metrowerks Codewarror Pro 2.1
-
-
- */
-
-
- #pragma once
-
- #include <Files.h>
-
- typedef struct ItemRec // All linked lists have a pointer
- { // to the next item first.
- struct ItemRec* next; // This allows for general routines
- } ItemRec, *ItemPtr; // on linked lists.
-
- typedef struct WatchFolderRec
- {
- ItemPtr next; // Keep a linked list
-
- FSSpec theSpec; // FSSpec of folder
- long theDirID; // Actual directory ID of the folder
- short theFileCount; // The previous number of files
-
- } WatchFolderRec, *WatchFolderPtr;
-
- typedef struct WatchVolumeRec
- {
- ItemPtr next; // Keep a linked list
-
- short theVolRef; // Volume with watch folders
- unsigned long theLastModCheck; // Last time PBCatSearch() performed on volume
-
- } WatchVolumeRec, *WatchVolumePtr;
-
-
- Boolean InitWatchFolders( void );
- Boolean AddFolder( FSSpec* theSpec );
- Boolean AddVolume( short theVolRef );
- WatchFolderPtr GetHeadFolderPtr( void );
- WatchVolumePtr GetHeadVolumePtr( void );
- long GetNumberOfFolders( void );
- long GetNumberOfVolumes( void );
- WatchFolderPtr FolderInList( FSSpec* theSpec );
- Boolean VolumeAndDirIDInList( short theVolRef, long theDirID );
- void FirstVolumeToLast( void );
- void AddFolderPathResource( FSSpec* theSpec );
- OSErr GetDirInfo( FSSpec* theSpec, CInfoPBRec* thePB);
-